/**
 * 
 */
package com.explgo.backend.domain;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

/**
 * @author Jialiang(Cain) Wang
 * 
 */
@Entity
public class TimeFrame extends DescribableEntity {
	private static final long serialVersionUID = -6392732491932805898L;

	public static final String MORNING = "morning";
	public static final String AFTERNOON = "afternoon";
	public static final String EVENING = "evening";
	public static final String NIGHT = "night";

	/**
	 * The places for the plan.
	 * */
	private List<Place> places = new LinkedList<>();

	/**
	 * @return the places
	 */
	@ManyToMany(cascade = {CascadeType.ALL})
	public List<Place> getPlaces() {
		return places;
	}

	/**
	 * @param places
	 *            the places to set
	 */
	public void setPlaces(List<Place> places) {
		this.places = places;
	}

}
